<?php
namespace app\index\controller;
class User
{
	public function index($request, $response){
		$response->header('Content-Type', 'text/html; charset=utf-8');
		$echo='Hello world!';
		$response->end($echo);
	}
	public function request($request, $response){
		$response->header('Content-Type', 'text/html; charset=utf-8');
		$echo=print_r($request,1);
		$response->end($echo);

	}
	public function response($request, $response){
		$response->header('Content-Type', 'text/html; charset=utf-8');
		$echo=print_r($response,1);
		$response->end($echo);

	}
	public function pv($request, $response){
		$echo='';
		$app=app();
		$j=apcu_fetch(APCU_PV);
		$response->header('Content-Type', 'text/html; charset=utf-8');
		for($i=1;$i<=$j;$i++)
		$echo.=(($app->G('?end_'.$i,'','m',100)).'<br>');
		$echo .='count:'.$j;
		$response->end($echo);

	}


}
